package com.homelock.constants;

/**
 * @description 短信错误码对照表
 * @author chenmfa
 *
 */
public enum ErrorSms {
	ERR_SMS_SEND_FAIL(801001 , "ERR_SMS_SEND_FAIL", "发送短信失败"),
	ERR_EMPTY_SMS(801002 , "ERR_EMPTY_SMS", "短信内容为空"),
	ERR_EMPTY_SMS_PHONENUM(801003 , "SMS_QUERY.ERR_EMPTY_SMS_PHONENUM", "手机号码为空"),
	ERR_EMPTY_SMS_TEMPLATE(801004 , "ERR_EMPTY_SMS_TEMPLATE", "短信模板为空"),
	ERR_UNKNOWN_SMSTYPE(801005, "ERR_UNKNOWN_SMSTYPE", "未知的短信类型"),
	ERR_UNKNOWN_SMSORI(801006, "ERR_UNKNOWN_SMSORI", "未知的短信来源"),
	ERR_UNKNOWN_SMSORI_INFO(801007, "ERR_UNKNOWN_SMSORI_INFO", "未知的短信来源"),
	ERR_BUSINESSCONTROL_VIOLATED(801008, "ERR_BUSINESSCONTROL_VIOLATED", "触发业务流控"),
	ERR_SMS_INITIALIZE(801009, "ERR_SMS_INITIALIZE", "初始化短信发送败"),
	ERR_SMS_CONFIG_MISSING(801010, "ERR_SMS_CONFIG_MISSING", "未配置的短信"),
	ERR_SMS_STRATEGY(801011, "ERR_SMS_STRATEGY", "该来源的短信处理功能未配置"),
	ERR_SMS_REGION(801012, "ERR_SMS_REGION", "错误的短信来源区域"),
	ERR_EMPTY_SEARCH_DATE(801013, "SMS_QUERY.ERR_EMPTY_SEARCH_DATE", "短信查询日期为空"),
	ERR_SEARCH_USER_RECORD(801014, "SMS_QUERY.ERR_SEARCH_USER_RECORD", "查询短信发送记录失败"),
	ERR_EMPTY_SMS_CODE(801015, "SMS_APPLY.ERR_EMPTY_SMS_CODE", "短信验证码为空"),
	ERR_INVALID_SMS_CODE(801016, "SMS_APPLY.INVALID_VCODE", "短信验证码无效"),
	ERR_INVALID_SMS_CONFIG(801017, "SMS_CONTROL.ERR_INVALID_SMS_CONFIG", "错误的短信流控配置"),
	UNKNOW_ERROR(801099, "UNKNOW_ERROR", "未知错误"),
//	ERR_SMS_STRATEGY(801015, "该来源的短信处理功能未配置"),
//	ERR_SMS_STRATEGY(801016, "该来源的短信处理功能未配置"),
	
	;
	private int errorCode;
	private String tag;
	private String desc;
	
	private ErrorSms(int errCode, String tag, String desc){
		this.errorCode = errCode;
		this.tag = tag;
		this.desc = desc;
	}
	public int getErrorCode(){
		return errorCode;
	}
	public String getDesc(){
		return desc;
	}
	public String getTag() {
		return tag;
	}
}
